import Vue from "vue"
import VueRouter from "vue-router"
import Find from '../views/Find.vue'
import My from '../views/My.vue'
import Path from '../views/Path.vue'
import NotFount from '../views/NotFount.vue'
Vue.use(VueRouter)


const router = new VueRouter({
  routes: [{
    path: '/',
    redirect: '/find',

  },
  {
    path: '/find',
    component: Find,
    name: 'find'
  },
  {
    path: '/my',
    component: My,
    name: 'my'
  },
  {
    path: '/path',
    component: Path,
    name: 'path'
  },
  {
    path: '*',
    component: NotFount
  }
  ]
})

export default router